<?php 
  require_once("includes/config.php"); 
if($_SERVER["REQUEST_METHOD"] == "POST"){

$SQL=query("INSERT INTO payment_vouchers (type,pay_to,recipient,amount,paymen_method,paymen_item,toward,
            notes,date,Hijri_date,owner_id) VALUES (?,?,?,?,?,?,?,?,?,?,?)",$_POST['type'],$_POST['pay_to'],$_POST['recipient'],$_POST['amount'],
			$_POST['paymen_method'],$_POST['paymen_item'],$_POST['toward'],$_POST['notes'],$_POST['hijri_date'],$_POST['date'],$_SESSION['user_id']);

  redirect("payment_vouchers.php");
}
 
?>